package com.koron.order.common.mapper;

import com.koron.order.common.bean.po.OrderEquipPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 工单设备表(OrderEquip)表数据库访问层
 *
 * @author zhouj
 * @since 2022-03-16 15:49:18
 */
public interface OrderEquipMapper {

    int insertOrUpdate(OrderEquipPo orderEquip);

    int insertOrUpdateBatch(@Param("list") List<OrderEquipPo> orderEquipList);

    int insert(OrderEquipPo orderEquip);

    int insertBatch(@Param("list") List<OrderEquipPo> orderEquipList);

    int update(OrderEquipPo orderEquip);

    int deleteById(String id);

    int deleteByOrderId(String orderId);

    OrderEquipPo queryById(String id);

    List<OrderEquipPo> queryList(OrderEquipPo orderEquip);

    List<OrderEquipPo> queryByOrderId(@Param("orderId")String orderId,@Param("language")String language);

    List<OrderEquipPo> queryByOrderIds(@Param("list") List<String> orderIds,@Param("language")String language);

    int deleteByIds(@Param("ids") String ids);

}